package interactionhistoryscrollbareclipse.preferences;

import org.eclipse.jface.preference.*;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.eclipse.ui.IWorkbench;
import ihs.IHSPlugin;


public class IHSPreferences extends FieldEditorPreferencePage implements
		IWorkbenchPreferencePage {

	public IHSPreferences() {
		super(GRID);
		setPreferenceStore(IHSPlugin.getDefault().getPreferenceStore());
	}

	/**
	 * Creates the field editors. Field editors are abstractions of the common
	 * GUI blocks needed to manipulate various types of preferences. Each field
	 * editor knows how to save and restore itself.
	 */
	public void createFieldEditors() {

		final StringFieldEditor stringFieldEditor = new StringFieldEditor(PreferenceConstants.P_REGIONSIZE,
				"Region Size: ", getFieldEditorParent());
		final BooleanFieldEditor booleanFieldEditor = new BooleanFieldEditor(
				PreferenceConstants.P_BOOLEAN,
				"&Do you want to set your own region: ", getFieldEditorParent());
		
		addField(stringFieldEditor);
		addField(booleanFieldEditor);

	}

	public void init(IWorkbench workbench) {
	}

}